
let studentDao = require('../../dao/studentDao');

//测试查询的方法

/* let result = studentDao.getStudentsData(2,3);
result.then((data)=>{
    console.log(data);
}) */

//测试总条数
 /* let result = studentDao.getTolNum()
result.then((data)=>{
    console.log(data);
})  */

//测试添加学生
/* let result = studentDao.inserStudent({name:"王钢蛋",gender:"男",age:21,address:"成都市 "})
result.then((data)=>{
    console.log(data);
})  */ 

//测试根据id删除学生
/*   let result = studentDao.deleteStudentById("62f46d66b1369bb2f71c2f9b")
result.then((data)=>{
    console.log(data);
})  */   

//根据id修改修改学生
    /* let result = studentDao.updateStudentById("62f46d66b1369bb2f71c2f9b",{name:"新张三",gender:"女"})
result.then((data)=>{
    console.log(data);
})  */  

 let result = studentDao.updateStudentById("62f3467c47a2c6efad423945",{name:"张三",gender:"男",age:25})
result.then((data)=>{
    console.log(data);
}) 

